package com.zy.explore.license.infrastructure.util.mock;

import uk.co.jemos.podam.api.AbstractRandomDataProviderStrategy;

/**
 * description 基于 Faker 随机数据提供策略
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2022年04月17日 01:33:12
 * @since 1.0.0
 * @see com.github.javafaker.Faker
 */
public class FakerDataProvider extends AbstractRandomDataProviderStrategy {

    public FakerDataProvider() {
        setDefaultNumberOfCollectionElements(10);
        addOrReplaceTypeManufacturer(String.class, new FakerStringManufacturer());
        addOrReplaceTypeManufacturer(Long.class, new FakerLongManufacturer());
        addOrReplaceTypeManufacturer(Integer.class, new FakerIntegerManufacturer());
    }
}
